function deleteReport(id) {
    bootbox.confirm({
        message: "确认删除此报告吗？",
        buttons: {
            confirm: {
                label: 'Yes',
                className: 'btn-success'
            },
            cancel: {
                label: 'No',
                className: 'btn-danger'
            }
        },
        callback: function (result) {
            if (result) {
                removeReport(id);
            }
        }
    });
}

function removeReport(id) {
    $.ajax({
        url: '/flytest/test/report?id=' + id,
        type: 'delete',
        dataType: 'json',
        success: function (res) {
            if (res.code === '200') {
                window.location.href = '/flytest/test/reports'
            }
        }
    })
}